From f21403fd9f7f6a70484d8b938545f0741707544a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 29 Oct 2010 14:54:53 -0400 Subject: [PATCH] pushModal: clear focus after pushing a new level This way the new modal level is independent of whatever may have been happening before. Fixes a problem with status menus becoming active again from inside the app switcher, etc. --- js/ui/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/main.js b/js/ui/main.js index 8e46209e6..5177df6ec 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -390,6 +390,7 @@ function pushModal(actor) { } modalActorFocusStack.push([actor, curFocus]); + global.stage.set_key_focus(null); return true; } -- 2.39.5